/* 全局样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 全局链接样式 */
a {
  color: #1890ff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #40a9ff;
}

/* 全局过渡动画 */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #141414;
    color: rgba(255, 255, 255, 0.85);
  }

  a {
    color: #177ddc;
  }

  a:hover {
    color: #40a9ff;
  }

  ::-webkit-scrollbar-track {
    background: #262626;
  }

  ::-webkit-scrollbar-thumb {
    background: #434343;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* 响应式布局断点 */
@media screen and (max-width: 576px) {
  .ant-form-item-label {
    padding: 0 0 8px;
    line-height: 1.5;
  }
}